#include<stdio.h>
void fac(int* pa,int* pb)
{
	int t=*pa;
	*pa=*pb;
	*pb=t;
}
int main()
{
	int a;
	int b;
	scanf("%d %d",&a,&b);
	int* pa=&a;
	int* pb=&b;
	fac(pa,pb);
	printf("%d %d",*pa,*pb);
	return 0;
}
